package java56_6;

import java.util.Scanner;

public class Yidong {

	public static void main(String[] args) {
		int[] ar = { 99, 85, 80, 67, 63, 60, 0 };// 最后一个是空位置
		Scanner sc = new Scanner(System.in);
		int k = 99;// sc.nextInt();
		for (int i = 0; i < ar.length - 1; i++) {
			if (ar[i] < k) {
				// 从i这个位置开始，到ar.length-2,后移一位
				for (int j = ar.length - 2; j >= i; j--) {
					ar[j + 1] = ar[j];
				}
				ar[i] = k;
				break;
			}
		}
		for (int i = 0; i < ar.length; i++)
			System.out.print(ar[i] + " ");
	}

}
